package com.zhuang.mapper;

import com.zhuang.dto.QuestionDTO;
import com.zhuang.pojo.Question;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface QuestionExtMapper {
    void addViewCount(Integer id);
    List<QuestionDTO> list(String key);
    QuestionDTO findByQuestionId(Integer id);
    void incCommentCount(Integer id);
    List<QuestionDTO> selectRelated(Question question);

    @Select("select id, title from question where id = #{id}")
    Question selectByOuterId(Integer id);
}
